package cn.qiao.demo.service.impl;

import cn.qiao.demo.domain.Test;
import cn.qiao.demo.service.DemoService;
import cn.qiao.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2022/1/27
 * @author qiao
 * @Desc:
 */
@Service
public class TestServiceImpl implements TestService {


    @Autowired
    private DemoService demoService;

    @Override
    public String getName() {
        String name = "xiaoming";
        String name1 = demoService.getName();
        System.out.println(name1);
        return name;
    }

    @Override
    public void test() {
        Test test = new Test();
        System.out.println(test.getClass().getClassLoader());
    }
}
